package com.atguigu.spzx.user.client.fallback;

import com.atguigu.spzx.model.vo.common.Result;
import com.atguigu.spzx.model.vo.common.ResultCodeEnum;
import com.atguigu.spzx.user.client.UserClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class UserClientFallback implements UserClient {
    @Override
    public Result findUserAddressById(Long id) {
        log.error("根据id查询地址失败，id={}" , id);
        return Result.build(ResultCodeEnum.UNKNOW_ERROR , null);
    }
}
